package com.anet;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void onClick(View view) {
        String url = "https://blog.csdn.net/jdsjlzx/article/details/51607867";
        url = "http://www.weather.com.cn/adat/sk/101190201.html";
        url = "http://www.zhuangbi.info/search?q=110";
        url = "http://www.weather.com.cn/adat/sk/101220602.html";

        WebUtils.GET(url, new WebUtils.OnDataListener() {
            @Override
            public void onSuccess(String ret) {
                Log.e("aaa", ret);
            }

            @Override
            public void onFailed(String error) {
                Log.e("aaa", "failed");
            }
        });
    }
}
